<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style type="text/css">

     
        #nb{
            display:flex;
            justify-self: flex-start;
        }
        #nb2{
            display:flex;
            justify-self: flex-end;
        }
    </style>
</head>
<body>
  
    <div id="nb">
    <div id="div1" class="divzx">新闻</div>
    <div id="div1" class="divzx">hao123</div>
    <div id="div1" class="divzx">地图</div>
    <div id="div1" class="divzx">贴吧</div>
    <div id="div1" class="divzx">视频</div>
    <div id="div1" class="divzx">图片</div>
    <div id="div1" class="divzx">网盘</div>
    <div id="div1" class="divzx">文库</div>
    <div id="div1" class="divzx">更多</div>
    </div>
    <div id="nb2">
    <div id="div2" class="divzs">长沙 30°C</div>
    <div id="div2" class="divzs">良</div>
   </div>

    
</body>
</html>